  package com.itheima.ydd.dto;

import com.itheima.ydd.entity.SysMenu;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;
@Data
public class SysMenuDto extends SysMenu {
    private List<SysMenuDto> children = new ArrayList<>();
    public void children(SysMenuDto sysMenu){
        children.add(sysMenu);
    }
}
